package com.donfu.system.service.house.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.donfu.system.mapper.house.HouseRegionMapper;
import com.donfu.system.domain.house.HouseRegion;
import com.donfu.system.service.house.IHouseRegionService;

/**
 * 行政区域Service业务层处理
 * 
 * @author donfu
 * @date 2021-12-01
 */
@Service
public class HouseRegionServiceImpl implements IHouseRegionService 
{
    @Autowired
    private HouseRegionMapper houseRegionMapper;

    /**
     * 查询行政区域
     * 
     * @param id 行政区域主键
     * @return 行政区域
     */
    @Override
    public HouseRegion selectHouseRegionById(Long id)
    {
        return houseRegionMapper.selectHouseRegionById(id);
    }

    /**
     * 查询行政区域列表
     * 
     * @param houseRegion 行政区域
     * @return 行政区域
     */
    @Override
    public List<HouseRegion> selectHouseRegionList(HouseRegion houseRegion)
    {
        return houseRegionMapper.selectHouseRegionList(houseRegion);
    }

    /**
     * 新增行政区域
     * 
     * @param houseRegion 行政区域
     * @return 结果
     */
    @Override
    public int insertHouseRegion(HouseRegion houseRegion)
    {
        return houseRegionMapper.insertHouseRegion(houseRegion);
    }

    /**
     * 修改行政区域
     * 
     * @param houseRegion 行政区域
     * @return 结果
     */
    @Override
    public int updateHouseRegion(HouseRegion houseRegion)
    {
        return houseRegionMapper.updateHouseRegion(houseRegion);
    }

    /**
     * 批量删除行政区域
     * 
     * @param ids 需要删除的行政区域主键
     * @return 结果
     */
    @Override
    public int deleteHouseRegionByIds(Long[] ids)
    {
        return houseRegionMapper.deleteHouseRegionByIds(ids);
    }

    /**
     * 删除行政区域信息
     * 
     * @param id 行政区域主键
     * @return 结果
     */
    @Override
    public int deleteHouseRegionById(Long id)
    {
        return houseRegionMapper.deleteHouseRegionById(id);
    }
}
